<?php

/**
 * Description of XQL_Statement
 *
 * @author prometheus
 */
class XQL_Statement extends PDOStatement
{
	protected $internalName;

	protected $actionCfg;

	/**
	 * A statement-et eredményező XQL_Action objektum.
	 * @var XQL_Action
	 */
	protected $action;

	/**
	 * A szülőkapcsolat.
	 * @var XQL_Connection
	 */
	protected $connection;

	public function __construct($connection)
	{
		$this->connection = $connection;
		$this->initAction();
	}

	protected function initAction()
	{
		$this->action = $this->connection->getResultingAction();
		$this->actionCfg = $this->action->getConfig()->getConfig();
	}

	public function __toString()
	{
		return $this->queryString;
	}
}

?>